package com.kjhxtc.restfulrunner;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @author 杜神
 * @version 1.0
 * @since 2022/3/16 10:53
 */
public class RestfulClientManager {
    private final List<RestfulClient> restfulClients = new ArrayList<>();

    public void add(RestfulClient restfulClient){
        this.restfulClients.add(restfulClient);
    }

    public RestfulClient get(){
        Random rand = new Random();
        return this.restfulClients.get(rand.nextInt(this.restfulClients.size()));
    }
}
